<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 内联JavaScript -->
    <button onclick="alert('逗你玩')">月入过万</button>
    <!-- 外部JavaScript -->
    <script src="xxx.js"></script>
    <!-- 内部JavaScript -->
    <script>
        alert("欢迎来来到德莱联盟")
        confirm('确定取消');
        prompt('输入框');
    </script>
</body>
</html>